﻿@namespace MudBlazor
@inherits MudComponentBase




<div @attributes="UserAttributes" class="@Classname" style="@Style">
    <div class="mud-input-control-input-container">
        @InputContent
        @if (!String.IsNullOrEmpty(Label))
        {
            <MudInputLabel Class="mud-input-label-inputcontrol" Variant="@Variant" Disabled=@Disabled Error="@Error" Margin="@Margin">
                @Label
            </MudInputLabel>
        }
    </div>
    @if (Error || !String.IsNullOrEmpty(HelperText))
    {
        <div class="mud-input-control-helper-container">
            <p class="@HelperClass">
                @if (Error)
                {
                    @ErrorText
                }
                else if (!String.IsNullOrEmpty(HelperText))
                {
                    @HelperText
                }
            </p>
        </div>
    }
    @ChildContent
</div>

